home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / B-C / C++ CDEV.sit / C++ CDEV ƒ / UStandAlone.h / UStandAlone.h
Encoding:
C/C++ Source or Header  |  1991-08-24  |  716 b   |  31 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    UStandAlone.h
  3.  *    based on A5World.h by Patrick Beard, ©1990 by Patrick C. Beard.  All rights reserved.
  4.  *    
  5.  *    KNOWN BUGS AND SHORTCOMINGS:
  6.  *        TStandAloneWorld::fOurA5 is allocated as a non-relocatable heap object
  7.  */
  8.  
  9. #ifndef __USTANDALONE__
  10. #define __USTANDALONE__
  11.  
  12. #ifndef __UHANDLEOBJECT__
  13. #include <UHandleObject.h>
  14. #endif
  15.  
  16. typedef Ptr A5Reference;
  17.  
  18. class TStandAloneWorld: public THandleObject {
  19.     public:
  20.         TStandAloneWorld(Boolean codeFloats = true);
  21.         ~TStandAloneWorld();
  22.         void Enter();                                                                        // swap in our A5 world
  23.         void Leave();                                                                        // restore caller’s A5 world
  24.     private:
  25.         long fA5WorldSize;
  26.         Boolean fCodeFloats;
  27.         A5Reference fOurA5;
  28.         A5Reference fTheirA5;
  29. };
  30.  
  31. #endif